package StudyCode.summary.mycollection;

import java.util.LinkedList;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class UpdatingLinkedListItems {
	public static void main(String[] args) {
		LinkedList<String> officers = new LinkedList<String>();

		officers.add("Blake");
		officers.add("Burns");
		officers.add("Tuttle");
		officers.add("book2s");
		officers.add("Pierce");
		officers.add("www.tah1986.com");
		System.out.println("更新前，LinkedList 元素:" + officers);
		officers.set(2, "new");
		System.out.println("更新后，LinkedList 元素:" + officers);

	}
}
